<template>
  <el-upload
    class="avatar-uploader"
    action="#"
    list-type="picture-card"
    :http-request="onRequest"
  >

    <i class="el-icon-plus avatar-uploader-icon" />

  </el-upload>

</template>

<script>
export default {
  data() {
    return {

    }
  },

  created() {

  },

  methods: {
    onRequest() {
      console.log(123)
    }
  }
}
</script>

<style lang='scss'>
.avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 148px;
    height: 148px;
    line-height: 148px;
    text-align: center;
  }

</style>
